package test6.testcases;

import java.util.concurrent.TimeUnit;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;

import junit.framework.TestCase;
import test6.publics.ItineraryUser;
import test6.publics.LoginUser;

public class ItineraryTestCase {
	private static final Class<?> UserData = null;
	private WebDriver driver;
	private String baseUrl;
	
	@BeforeMethod
	public void setUp() throws Exception {
		driver = new FirefoxDriver();
		baseUrl = "http://127.0.0.1:1080/WebTours/";
		driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
	}
	@Test
	public void TestCaseRemove() {
		driver.get(baseUrl);
		LoginUser.login(driver,"jojo","bean");   
		ItineraryUser.remove(driver,"1");
	}
	
	@AfterMethod
	public void tearDown() throws Exception {
		driver.quit();
	}

}
